<h1> Container: </h1>
		
     <?php
	$model=$this->loadModel($eid);
	?>
	<p style="margin-bottom:-10px; font-weight:bold; font-size:15px; color:red">+
	<?php
	echo CHtml::link('Add Container', array('container/create&entry_id='.$model->id));
	?>
	</p>
	<?php
	 $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'container-grid',
	'dataProvider'=> new CArrayDataProvider($model->container),

	//'filter'=>Items::model(),
	'columns'=>array(
	array
(
    'class'=>'CButtonColumn',
    'template'=>'{view}{update}',
    'buttons'=>array
    (
        'view' => array
        (
    
            'url'=>'Yii::app()->createUrl("container/view", array("id"=>$data->id))',
        ),
		  'update' => array
        (
    
            'url'=>'Yii::app()->createUrl("container/update", array("id"=>$data->id))',
        ),
		
       
    ),
),
		'code',
		
		
	),
)); ?>



